home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Interactive Media Design Review 1999
/
Interactive Media Design Review 1999.iso
/
pc
/
allfiles
/
angry
/
intro.dir
/
00005_Script_animatez
< prev
next >
Wrap
Text File
|
1999-03-01
|
840b
|
40 lines
property pSpr, step, direction
property animCount, myAnim
property pActive
on new me, thisSpr, thisAnim
set pSpr = thisSpr
set step = - 130
set direction = 1
set myAnim = thisAnim
set animCount = 0
return me
end
on animLoop me --ben's anim
if animCount <> count(myAnim) then
set animCount = animCount + 1
if animCount = 1 then
set the locH of sprite(pSpr) = the locH of sprite(pSpr) + step
else if animCount >= count(myAnim) then
set animCount = count(myAnim)
end if
set the member of sprite(pSpr) = member getAt(myAnim, animCount)
else if animCount = count(myAnim) then
set animCount = 0
end if
if the locH of sprite(pSpr) < -100 then
set the locH of sprite(pSpr) = 640
end if
end animLoop